@echo off
for /f "tokens=1-4 delims=/ " %%i in ("%date%") do (
 set month=%%j
 set day=%%k
)
set datestr=%month%%day%%year%
echo datestr is %datestr%

set BACKUP_FILE=wuliu-%datestr%.cbak
echo backup file name is %BACKUP_FILE%
echo on
pg_dump -x -v  -Fc --dbname=postgresql://btlh_wuliu:btlh@101.201.64.17:5432/wuliu -f %BACKUP_FILE%
